package nl.saxion.syntaxis.model;

public class UIDGenerator {

	private static UIDGenerator instance = null;
	private int tellertje = 0;

	public synchronized int getNext() {
		tellertje++;
		return tellertje;
	}

	public static UIDGenerator getInstance() {
		if (instance == null) {
			instance = new UIDGenerator();
		}
		return instance;
	}
}
